package com.library.guard.core.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Package: com.library.guard.core.domain
 * @ClassName: ReadTagGpoSet
 * @Author: Yin
 * @Date: 17:23
 * @Description: 读到标签gpo设置
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GpoSet {

    private int pin;

    private int level;

    /** 设备ip */
    private String ip;

    public GpoSet(int pin, int level) {
        this.pin = pin;
        this.level = level;
    }

    public static GpoSet def() {
        return new GpoSet(0,1);
    }

    public static GpoSet red() {
        return new GpoSet(1,1);
    }

    public static GpoSet green() {
        return new GpoSet(2,1);
    }

    public static GpoSet blue() {
        return new GpoSet(3,1);
    }
}
